Skip to content

test(realunit): cover NewRegistration with null userData (first-time empty form)#708

Open
joshuakrueger-dfx wants to merge 1 commit into
stagingfrom
test/realunit-registration-empty-form-coverage
Open

test(realunit): cover NewRegistration with null userData (first-time empty form)#708
joshuakrueger-dfx wants to merge 1 commit into
stagingfrom
test/realunit-registration-empty-form-coverage

Conversation

@joshuakrueger-dfx

Copy link
Copy Markdown
Collaborator

Summary

Follow-up coverage for the KycRequiredNewRegistration empty-form fix
(#705, consuming api#3836).

#705 removed the parses KycRequired test but did not add a case for the
state the fix actually exists for: a first-time user gets NewRegistration
with no userData, and the app must render an empty form. This pins
that contract so a regression (e.g. re-introducing a non-empty expectation)
fails loudly.

Changes

  • aggregate_dtos_test.dart — add parses NewRegistration with null userData (first-time user → empty form), asserting state == newRegistration and
    realUnitUserDataDto == null.

Test-only, no production code touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant